#include "FishInfoDatabase.h"


FishInfoDatabase::FishInfoDatabase(void)
{
}


FishInfoDatabase::~FishInfoDatabase(void)
{
}

void FishInfoDatabase::AddData( FishInfo *info )
{
		if(m_FishInfoMap.find(info->m_Name)==m_FishInfoMap.end())
		{
				m_FishInfoMap[info->m_Name]=info;
		}
}

FishInfo* FishInfoDatabase::FindData( const std::wstring& index )
{
		FishInfoMap::iterator it_info = m_FishInfoMap.find(index);
		if(it_info != m_FishInfoMap.end())
		{
				return it_info->second;
		}else{
				return NULL;
		}
}
